package com.agentframework.examples.jinhua;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wangjun
 **/
public class PlayerInfo {

    private final String playerId;

    private List<String> cards = new ArrayList<>();

    private boolean viewed = false;

    private int currentBet = 0;

    private int balance = 1000;

    // 本轮是否被淘汰
    private boolean active = true;

    // 本局输赢金额
    private String totalWinLoss = "0";

    public PlayerInfo(String playerId) {
        this.playerId = playerId;
    }

    // Getter/Setter
    public String getPlayerId() { return playerId; }
    public List<String> getCards() { return cards; }
    public boolean isViewed() { return viewed; }
    public int getCurrentBet() { return currentBet; }
    public int getBalance() { return balance; }
    public boolean isActive() { return active; }
    public String getTotalWinLoss() { return totalWinLoss; }

    public void setCards(List<String> cards) { this.cards = cards; }
    public void setViewed(boolean viewed) { this.viewed = viewed; }
    public void setCurrentBet(int currentBet) { this.currentBet = currentBet; }
    public void setBalance(int balance) { this.balance = balance; }
    public void setActive(boolean active) { this.active = active; }
    public void setTotalWinLoss(String totalWinLoss) { this.totalWinLoss = totalWinLoss; }

    @Override
    public String toString() {
        return "PlayerInfo{" +
                "playerId='" + playerId + '\'' +
                ", cards=" + cards +
                ", viewed=" + viewed +
                ", currentBet=" + currentBet +
                ", balance=" + balance +
                ", active=" + active +
                ", totalWinLoss=" + totalWinLoss +
                '}';
    }
}
